package com.briup.ch04;
//程序与外界的交流
public class Test01 {
    public static void main(String[] args) {
        System.out.println(args.length);
        //max_index=args.length-1
        int sum=0;
        for (int i = 0; i < args.length; i++) {//快捷键fori
            System.out.println(args[i]);
            sum=sum+Integer.parseInt(args[i]);
        }
        System.out.println(sum);
    }
}
